package tools

import (
	"strings"

	"github.com/mozillazg/go-pinyin"
)

func PinYin(str string) (firstWord string) {
	a := pinyin.NewArgs()

	a.Style = pinyin.FirstLetter

	return strings.ToUpper(pinyin.Pinyin(str, a)[0][0])
}
